//
//  OAuthViewController.swift
//  sina
//
//  Created by lixuelei on 6/10/15.
//  Copyright © 2015 itcast. All rights reserved.
//

import UIKit

class OAuthViewController: UIViewController {
    
    let WB_client_id = "718658370"
    let WB_redirect_uri = "http://www.baidu.com"
    let pageURL = "https://api.weibo.com/oauth2/authorize"
    
    
    
    //将跟视图墙砖成一个webView,
    var webView: UIWebView {
        
        return view as! UIWebView
    
    }
    
    
    

    override func viewDidLoad() {
        super.viewDidLoad()
        
        loadOAuthPage()
    }

    private func loadOAuthPage(){
    
    let urlString = pageURL + "?" + "client_id=" + WB_client_id + "&redirect_uri"
        + WB_redirect_uri
        
        
    }
    

}
